package dao;

import hbt.HibernateDAO;

import org.hibernate.Session;
import org.hibernate.Transaction;

import bean.IngredienteBean;

public class IngredienteDao {

	public void altaIngrediente(IngredienteBean I)
	{
		Session s = HibernateDAO.getInstancia().getSession();
		Transaction t = s.beginTransaction();
		s.save(I);
		t.commit();
	}
}
